package designmode.disruptor;

import com.lmax.disruptor.WorkHandler;

/**
 * 消费者
 */
public class Consumer implements WorkHandler<PCData> {
    @Override
    public void onEvent(PCData event) throws Exception {
        System.out.println(Thread.currentThread().getId() + ": Event:---" + event.getValue() + "---");
    }
}
